package publics;

import java.util.concurrent.TimeUnit;

import org.openqa.selenium.WebDriver;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.testng.reporters.jq.Main;

import Pages.LoginPage;

public class Login {

	public static void login(WebDriver driver, String username, String password, String vercode) {
		LoginPage.login_username(driver).clear();
		LoginPage.login_username(driver).sendKeys(username);
		LoginPage.login_password(driver).clear();
		LoginPage.login_password(driver).sendKeys(password);
		LoginPage.login_vercode(driver).clear();
		LoginPage.login_vercode(driver).sendKeys(vercode);
		LoginPage.login_button(driver).click();
	}
}